﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using MCDirectBroadcast.Entity;

namespace MCDirectBroadcast.Controls
{
	/// <summary>
	/// Interaction logic for UctMemberList.xaml
	/// </summary>
	public partial class UctMemberList : UserControl
	{
		public UctMemberList()
		{
			InitializeComponent();
		}

		void InitEvents()
		{
			this.Loaded += new RoutedEventHandler(UctMemberList_Loaded);
		}

		void UctMemberList_Loaded(object sender, RoutedEventArgs e)
		{
			
		}

		public void Refresh()
		{
			List<Member> l = new List<Member>();
			l.Add(new Member() { UserName = "Manee's Galaxy Tab", IPAddress = "10.0.0.13" });
			l.Add(new Member() { UserName = "Aek's Motorola Zoom", IPAddress = "10.0.0.66" });
			l.Add(new Member() { UserName = "Droid Pad", IPAddress = "10.0.0.58" });

			ListB.ItemsSource = l;
		}
	}
}
